<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Constantes
 *
 * @author Jose Tejada
 */
define( "PREFIX_TABLE", "ssg_" );
define( "ID_NO_DETERMINADO", "1" );

//TIPOS DE USUARIOS
define( "TIPO_USU_ADMIN", 1 );
define( "TIPO_USU_SUP", 2 );
define( "TIPO_USU_VEND", 3 );

//************************************//
//*******  CONSTANTES VISTA   ********//
//************************************//
//--CONTROLLERS
//LOGIN
define( "CONTROLLER_LOGIN", 0 );
define( "ACC_LOGIN", 1 );
define( "ACC_GET_USER_LOGED", 2 );
define( "ACC_LOGOUT", 3 );

//DATATABLE
define( "CONTROLLER_DATA_TABLE", 1 );
define( "ACC_GET_DT_USERS", 1 );
define( "ACC_GET_DT_PRODUCTS", 2 );

//MTOUSUARIOS
define( "CONTROLLER_MTO_USUARIOS", 2 );
define( "ACC_GET_USER_BY_ID", 1 );
define( "ACC_ELIMINAR_USUARIO_POR_ID", 2 );
define( "ACC_AGREGAR_USUARIO", 3 );
define( "ACC_EDITAR_USUARIO", 4 );
define( "ACC_EXISTS_USERNAME", 5 );
define( "ACC_DISABLE_USER_BY_ID", 6 );

//MTOPRODUCTOS
define( "CONTROLLER_MTO_PRODUCTOS", 3 );
define( "ACC_EXISTS_NAME", 1 );

//--FIN CONTROLLERS


define( "CODE_SUCCESS", 0 );
define( "CODE_FAILED", -1 );
define( "EC_USER_NOT_REGISTERED", -2 );
define( "EC_USER_OR_PASSWORD_INCORRECTS", -3 );
?>
